package com.gqb.db;

import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.SQLException;

import com.sun.org.apache.xpath.internal.operations.String;

public class DbTest {
	public static void main(String[] args) throws SQLException {
		dbUtils dbu=new dbUtils();
		MydbUtils mydbUtils=new MydbUtils();
		DatabaseMetaData metaData=mydbUtils.getMetaData();
		ResultSet rs= metaData.getTables("GQB",null,null,null);
		while (rs.next()) {
			System.out.println(rs.getString("Name"));
		}
		/*List<Object> list= dbu.excuteQuery("select * from TCHUMAN WHERE 1=1", null);
		for (Object object : list) {
			System.out.println(object);
		}*/
		/*List<Object> list1= mydbUtils.excuteQuery("select DA_QYAJB_SEQ.NEXTVAL FROM DUAL", null);
		for (Object object : list1) {
			System.out.println(object.toString());
		}
		ResultSet rs=dbu.executeQueryRS("select * from TCHUMAN WHERE 1=1",null);
		while(rs.next()){
			System.out.println(rs.getObject(1));
		}*/
	}
}
